<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="/restrito/template.xhtml">

<ui:define name="menu"><ui:include src="menu.xhtml" /></ui:define>

<ui:define name="corpo">
<div class="container">
	<div class="container-fluid">
		<div class="row-fluid">
			<ui:include src="menulateralprofissional.xhtml" />
			<div class="span9">
				<ui:include src="../mensagem.xhtml"/>
				<c:if test="#{not empty consultarVagaCandidatoMB.lsVaga}">
					<table class="table table-striped table-bordered tabela">
					<thead>
						<tr>
							<th>Especialidade</th>
							<th>Nº de vagas</th>
							<th>Local</th>
							<th>Valor</th>
							<th>Prazo inscrição</th>
						</tr>
					</thead>
					<tbody>
					<ui:repeat var="v" value="#{consultarVagaCandidatoMB.lsVaga}" varStatus="i">
						<tr>
							<td>#{v.especialidade}</td>
							<td>#{v.numeroVagas}</td>
							<td>#{v.nomeFantasia}</td>
							<td><h:outputText value="#{v.valor}"><f:converter converterId="conversorDecimal"/></h:outputText></td>
							<td><h:outputText value="#{v.prazoInscricao}"><f:converter converterId="conversorData"/></h:outputText></td>
					   	</tr>
				   	</ui:repeat>
				   	</tbody>
					</table>
				</c:if>
			   	<c:if test="#{empty consultarVagaCandidatoMB.lsVaga}">
			   		<div class="alert"><a class="close" data-dismiss="alert">×</a>Você não está candidatado em nenhuma vaga.</div>
			   	</c:if>
			</div>
		</div>
	</div>
</div>
	<script type="text/javascript">
		jQuery('#1006').addClass('active');
		jQuery('#1006i').addClass('icon-white');
	</script>
</ui:define>
</ui:composition>
</html>
